package com.sf.fy.uav.applet.order.controller.task;

import com.sf.fy.uav.common.response.order.task.GoodsTypeResponse;
import com.sf.fy.uav.common.utils.Rs;
import com.sf.fy.uav.good.controller.GoodsTypeRest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 物资类型 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-04-13
 */
@RestController
@RequestMapping("/sys/goods-type/")
public class GoodsTypeController {

    @Autowired
    private GoodsTypeRest goodsTypeRest;

    @GetMapping("get-all")
    public Rs<List<GoodsTypeResponse>> getGoodsType() {
        return Rs.success(goodsTypeRest.getGoodsType());
    }
}
